package com.lzj;
// 定义一个类表示水果及其价格
public class Fruit {
    private String fruitName;
    private double fixedPrice;

    public String getFruitName() {
        return fruitName;
    }

    public double getFixedPrice() {
        return fixedPrice;
    }

    public Fruit(String fruitName, double fixedPrice) {
        this.fruitName = fruitName;
        this.fixedPrice = fixedPrice;
    }
}
